
<div class="wallets index">
	<h2><?php echo  'Wallets'; ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo 'id'; ?></th>
			<th><?php echo 'user_id'; ?></th>
			<th><?php echo 'name'; ?></th>
			<th><?php echo 'current_money'; ?></th>
			<th><?php echo 'created'; ?></th>
			<th><?php echo 'updated'; ?></th>
			<th><?php echo 'status'; ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($wallets as $wallet): ?>
	<tr>
            <td class="wa_id"><?php echo $wallet->id; ?>&nbsp;</td>
		<td>
			<?php  echo Html::anchor('users/view/'.$wallet->user_id,$wallet->user_id);?>
		</td>
		<td><?php echo $wallet->name;?>&nbsp;</td>
		<td><?php echo $wallet->current_money; ?>&nbsp;</td>
		<td><?php echo $wallet->created_at; ?>&nbsp;</td>
		<td><?php echo $wallet->updated; ?>&nbsp;</td>
                <td class="wa_default"><?php if( $wallet->status==1){?><div class="wa_default1"><img src="<?php echo Uri::base().'assets/img/default.png';?>" height="42" width="42"></div>  <?php }else{  ?><div></div> <?php } ?></td>
		<td class="actions">
			<?php echo Html::anchor('wallets/view/'.$wallet->id,'View');?>
			<?php echo Html::anchor('wallets/edit/'.$wallet->id,'Edit');?>
			<?php echo Html::anchor("wallets/delete/".$wallet->id,"Delete", array("onClick " =>" javascript:return confirm('Are you sure delete ?') ")); ?>
                        <?php echo Html::anchor('wallets/chuyentien/'.$wallet->id,'Chuyển tiền'); ?>
                </td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
                echo Pagination::instance('mypagination')->pages_render();
                echo Pagination::instance('mypagination')->previous();
                echo Pagination::instance('mypagination')->next();
	?>	</p>
	<div class="paging">
	<?php
//		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
//		echo $this->Paginator->numbers(array('separator' => ''));
//		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="actions">
	<h3><?php // echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo Html::anchor('wallets/add/','New wallet'); ?></li>
		
	</ul>
</div>
